"""
json文件读取
"""
import pandas as pd

# data = pd.read_json('ratings.json')
# print(data)

data = {'Name':['Tom', 'Jack', 'Steve', 'Ricky'],'Age':[28,34,29,42]}
df = pd.DataFrame(data, index=['s1','s2','s3','s4'])
print(df)
print(df.to_json(orient='values'))